package com.baizhiedu.basic.mapper;

import com.baizhiedu.basic.pojo.Fighter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: robert.song
 * @Date: Created in 2021/8/5
 */
@Data
@AllArgsConstructor
@Component
public class FighterMapperImpl {
    @Value("${jdbc.driver}")
    private String driver;

    private Fighter fighter;

    public FighterMapperImpl() {
        this.fighter = new Fighter();
    }

    public Fighter save() {
        this.fighter.setAge(0);
        this.fighter.setModel("C");
        return fighter;
    }

    public String getValueAnno() {
        return driver;
    }
}
